'''
f=open("/root/test.txt","w")
f.write("you call Huana Wu.")
f.write("come from tedu")
f.write("a woman")
f.close()
'''

f = open("/tmp/test.txt", "w+")
# f.write("ABCDEF\n1234567\n")
# for x in f:
#    print(x)
"""
s=f.read()
print(s)
f.close()
"""
# # f.seek(0,0)
# print(f.tell())
# # print(f.read())
# f.seek(3, 0)
# f.write("A")
# f.close()


import re

patt = re.compile('foo')
m = patt.match('food')
print(m.group())
